package com.control;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class SlworkServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.setCharacterEncoding("utf-8");
        resp.setContentType("text/html;charset=utf-8");
        String id = req.getParameter("id");
        String workName = req.getParameter("workName");
        String date = req.getParameter("pushDate");
        String work = req.getParameter("work");
        String name = req.getParameter("name");


        req.setAttribute("id",id);
        req.setAttribute("workName",workName);
        req.setAttribute("date",date);
        req.setAttribute("work",work);
        req.setAttribute("name",name);

        req.getRequestDispatcher("/LoginPag/selWork.jsp").forward(req,resp);
    }
}
